import Controller
import notifications
import puremvc


__author__ = 'CJay'



class AppFacade(puremvc.patterns.facade.Facade):
    STARTUP = "StartupCommand"
    TOGGLESCREEN = "ToggleScreenCommand"
    PLAYVIDEO = "PlayVideoCommand"



    @staticmethod
    def getInstance():
        return AppFacade()

    def initializeController(self):
        super(AppFacade, self).initializeController()

        super(AppFacade, self).registerCommand(AppFacade.STARTUP, Controller.StartupCommand)
        super(AppFacade, self).registerCommand(notifications.GAMESCREEN, Controller.GameScreenCommand)
        super(AppFacade, self).registerCommand(notifications.STARTGAME, Controller.GameStartCommand)
#        actions notifications

    def startup(self, app):
        self.sendNotification(AppFacade.STARTUP, app)



